package com.designpattern.behavior.responsibility;

/**
 * @author Administration
 * @date 2021/10/21 - 16:26 - 星期四
 * @project 行为模式中的责任链模式  具体处理者
 * @package com.designpattern.behavior.responsibility
 * @by 晨
 */
public class GroupLeader extends Handler{

    public GroupLeader() {
        super(0,Handler.NUM_ONE);
    }

    @Override
    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天," + leave.getContent() + "。");
        System.out.println("小组长审批：同意。");
    }
}
